import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 FdsEarlywarningRuleset 分页列表
 */
export function getFdsEarlywarningRulesetPagination(data: any) {
  return axios.get(`${context}/fdsEarlywarningRuleset/pagination`, {
    params: data,
  })
}

/**
 * 获取 FdsEarlywarningRuleset 所有数据
 */
export function getFdsEarlywarningRulesetAllList(data: any) {
  return axios.get(`${context}/fdsEarlywarningRuleset/allList`, {
    params: data,
  })
}

/**
 * 获取 FdsEarlywarningRuleset 详情
 */
export function getFdsEarlywarningRulesetDetailById(id: any) {
  return axios.get(`${context}/fdsEarlywarningRuleset/${id}`, {
    params: { id },
  })
}

/**
 * 新增 FdsEarlywarningRuleset
 */
export function addFdsEarlywarningRuleset(data: any) {
  return axios.post(`${context}/fdsEarlywarningRuleset`, data)
}

/**
 * 修改 FdsEarlywarningRuleset
 */
export function updateFdsEarlywarningRuleset(data: any) {
  return axios.put(`${context}/fdsEarlywarningRuleset`, data)
}

/**
 * 删除 FdsEarlywarningRuleset
 */
export function batchRemoveFdsEarlywarningRuleset(data: any) {
  return axios.post(`${context}/fdsEarlywarningRuleset/batchRemove`, data)
}
